import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "login",
      component: () => import("../views/Login.vue"),
    },
    {
      path: "/about",
      name: "about",
      component: () => import("../views/AboutView.vue"),
    },
    {
      path: "/home",
      name: "home",
      component: () => import("../views/HomeView.vue"),
    },
    {
      path: "/upload",
      name: "upload",
      component: () => import("../views/UploadView.vue"),
    },
    {
      path: "/QqLogin",
      name: "QqLogin",
      component: () => import("../views/QqLogin.vue"),
    },
    {
      path: "/map",
      name: "MapView",
      component: () => import("../views/MapView.vue"),
    },
    {
      path: "/companyList",
      name: "CompanyList",
      component: () => import("../home_views/CompanyList.vue"),
    },
    {
      path: "/jobList",
      name: "jobList",
      component: () => import("../home_views/JobList.vue"),
    },
    {
      path: "/jobVue",
      name: "JobVue",
      component: () => import("../home_views/JobVue.vue"),
    },
    {
      path: "/discover",
      name: "Discover",
      component: () => import("../views/Discover.vue"),
    },
    {
      path: "/emp",
      name: "Emp",
      component: () => import("../components/Emp.vue"),
    },
    {
      path: "/messages",
      name: "Messages",
      component: () => import("../components/Messages.vue"),
    },
    {
      path: "/hrHome",
      name: "HrHome",
      component: () => import("../views/hr/HrHomeView.vue"),
    },
    {
      path: "/relaystation",
      name: "relaysta tion",
      component: () => import("../views/RelayStation.vue"),
    },
    {
      path: "/chat/:id",
      name: "chat",
      component: () => import("../AI/ChatView.vue"),
    },
    {
      path: "/companyDetail",
      name: "CompanyDetailView",
      component: () => import("../home_views/CompanyDetailView.vue"),
    },
    {
      path: "/hrMessage",
      name: "HrMessage",
      component: () => import("../views/hr/HrMessage.vue"),
    },
    {
      path: "/recommend",
      name: "RecommendPerson",
      component: () => import("../views/hr/RecommendPerson.vue"),
    },
    {
      path: "/user/profile",
      name: "profile",
      component: () => import("../user/ProFile.vue"),
    },
    {
      path: "/AIRecruit",
      name: "AIRecruitAssistant",
      component: () => import("../hr_views/AIRecruitAssistant.vue"),
    },
    {
      path: "/aiHR",
      name: "aiHr",
      component: () => import("../hr_views/AIRecruitHR.vue"),
    },
  {
    path: "/smart-qa",
    name: "SmartQA",
    component: () => import("../views/SmartQA.vue"),
  },
  {
    path: "/stream-qa",
    name: "StreamQA",
    component: () => import("../views/StreamQA.vue"),
  },
  {
    path: "/multi-round-qa",
    name: "MultiRoundQA",
    component: () => import("../views/MultiRoundQA.vue"),
  },
  ],
});

export default router;
